using Battle.Data;
using Core;
using Core.Data;
using UnityEngine;
using View.Unit;

namespace View
{
    public class BattleView : BattleViewBase
    {
        public override void Initlized(BattleData data)
        {
        }

        public override IUnitView CreateUnitView(UnitData unit)
        {
            UnitView unitView = new UnitView();
            unitView.Data = unit;
            GameObject temp = Resources.Load<GameObject>("Player0");
            unitView.UnitGo = GameObject.Instantiate(temp);
            unitView.UnitGo.transform.SetParent(GameMain.Instance.KingParent);
            unitView.UnitGo.transform.localScale = Vector3.one;
            unitView.UnitGo.transform.localPosition = Vector3.zero;

            return unitView;
        }
    }
}